home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
mus
/
play
/
DMODP35b.lha
/
DASModPlayer
/
Rexx
/
makeAlist.drx
< prev
next >
Wrap
Text File
|
1994-08-12
|
2KB
|
63 lines
/*
MakeAList.drx V.0.1 First version
This arexx script extracts the author listing from D.A.S.MP
and outputs it as organized listing.
*/
OPTIONS Results
ADDRESS 'DASMP'
indexwidth = 3
handlewidth = 35
realnwidth = 30
AUTHORCOUNT
authcount=result
firstauth = 0
listedauth = 0
listheader3 = 'Listing extracted from D.A.S.MP by MakeAList.drx V0.1'
listheader1 = left("Num", indexwidth)' 'left("Handle/Group", handlewidth)' 'left("Real Name", realnwidth)
listheader2 = '---------------------------------------------------------------------------'
say listheader3
say listheader1
say listheader2
DO currentauth = firstauth to authcount-1
MOVETOAUTH currentauth
GETAUTHNAME
authname=result
isstyle=index(authname,'-')
if isstyle ~= 1 THEN DO
listedauth = listedauth+1
authspec=authname
CALL ParseAuthorName(authspec)
handlename=result
CALL ParseAuthorName2(authspec)
realname=result
say left(listedauth, indexwidth)' 'left(handlename, handlewidth)' 'left(realname, realnwidth)
END
END
EXIT
ParseAuthorName: procedure
parse arg AuthorName
DivPos = pos('<', AuthorName)
if DivPos = 0
then return AuthorName
else
return strip(left(AuthorName, DivPos-1),'T','<')
ParseAuthorName2: procedure
parse arg AuthorName
DivPos = pos('<', AuthorName)
if DivPos = 0
then return ' '
else
authlen=length(AuthorName)
return right(AuthorName, authlen-DivPos+1)